<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
  <head>
    <title>论坛</title>
  </head>
  <body>
        <form method="post" action="/invi/like">
            <table border="1px">
                  <caption>
                    帖子列表
                  </caption>
                    <span>帖子标题：</span>
                    <input type="text" name = "title"/>
                    <input type="submit" value="查询"/>
                <tr>
                    <th width="10%">标题</th>
                    <th width="10%">内容摘要</th>
                    <th width="10%">作者</th>
                    <th width="10%">发布时间</th>
                    <th width="30%">操作</th>
                </tr>
                <c:forEach var="invi" items="${inviList }" varStatus="status">
                    <tr <c:if test="${status.index%2==1}">
                        style="background:red;";
                    </c:if>>
                        <td>
                            <span>${invi.title }</span>
                        </td>
                        <td>
                            <span>${invi.summary }</span>
                        </td>
                        <td>
                            <span>${invi.author}</span>
                        </td>
                        <td>
                            <span>${invi.createdate}</span>
                        </td>
                        <td>
                          <span>
								<a href="/invi/back/${invi.id}" >回复帖子</a>
                              <a href="/invi/del/${invi.id}">删除</a>
							</span>
                        </td>
                    </tr>
                </c:forEach>
              </table>
        </form>
  </body>
</html>
